package jiexiqi;

//数字表达式，用来解释数字
public class NumExpression extends ArithmeticExpression {
    private String strNum;
    public NumExpression(String strNum) {
        this.strNum = strNum;
    }
    @Override
    public Integer interpret(Context context) {//解释数字
        return Integer.parseInt(strNum);
    }
}
